// Hash: paFknCUDC7yPSR0uwv5qUXBogQ25YZxzXt7ccbNKuvkSGseaFM0r4QaSkYdDIwCcWQWljS9/jHh+XfF4Hd5MGoTLiQv2WzY1QtMlgn1D3Ed1w10HrQKYabVXK0OjbR85+7A+caahrqVKVDC80SD+ZxdcL80SYqhxQOvZfJAMuN0= !function(){"use strict";var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function t(t,e){function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var w=function(){return(w=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<\/script>")},l);function l(t){var e=a.call(this)||this;return e.document=t,e}(d=p=p||{})[d.Error=0]="Error",d[d.Warning=1]="Warning",d[d.Debug=2]="Debug";var c=["color: #fff;","background: #ff8f1c;","display: inline-block;","padding: 1px 4px;","border-radius: 3px;"].join(" "),A=(u.Log=function(t,e){if(!(u.LOGLEVELg()?t[o]=i:o in t&&delete t[o]},D.prototype.filterNoBidSlots=function(t){var e=[];if(this.localStorageEnabled)for(var i=this.localStorageHelper.getItem(D.BIDCACHE_STORAGE_KEY),o=i&&v(i)||{},r=0,n=t;rg()?D.NO_BID:0this.adapterTimeout),new tt($,this.slots,this.elapsed,this.isTimeout,this.adapterStartElapsed,this.cdbCallStartElapsed,this.cdbCallEndElapsed,this.adapterEndElapsed,this.adapterTimeout,t,this.timeToFirstByte,this.clientRequestId,this.metricsManager.getSilentModeRequestCount(!0),this.metricsManager.getLocalStorageKeyCount(),this.connectionEstablishmentTime,this.domainLookupTime)},ot.prototype.buildEvents=function(){if(void 0!==this.clientRequestId)return{requestId:this.clientRequestId,events:this.events};throw new Error("buildEvents() cannot be called without a requestId!")},ot);function ot(t){this.elapsed=0,this.isTimeout=!1,this.adapterStartElapsed=0,this.cdbCallStartElapsed=0,this.cdbCallEndElapsed=0,this.adapterEndElapsed=0,this.slotIdsMatchedByCache=[],this.slots=[],this.events=[],this.metricsManager=t}var rt=(nt.prototype.getRequest=function(){return{feedbacks:this.feedbacks}},nt.prototype.getUrl=function(){return this.urlBuilder.buildCsmUrl(this.profileId,this.adapterVersion,this.wrapperVersion)},nt);function nt(t,e,i,o,r){this.urlBuilder=t,this.profileId=e,this.adapterVersion=o,this.wrapperVersion=r,this.feedbacks=i}var st,at,dt=(lt.generateCacheBuster=function(){return Math.floor(99999999999*Math.random())},lt);function lt(){}function ct(t){switch(t.toLowerCase()){case"amp":return st.AMP;default:return st.Unspecified}}(at=st=st||{})[at.Unspecified=0]="Unspecified",at[at.AMP=1]="AMP";var ut=(pt.prototype.buildUrl=function(t,e,i,o,r){void 0===i&&(i=st.Unspecified);var n=pt.CRITEO_BIDDER_URL+this.getHandlerPath();return n+="?ptv=95",!0===e.isAdBlocked&&(n+="&abp=1"),n=this.appendCommonParameters(n,t,o,r),n+=e.ctoIdOnPublisherDomain?"&idcpy="+e.ctoIdOnPublisherDomain:"",n+=e.secureId?"&sid="+e.secureId:"",n+=e.isOptOut?"&optout=1":"",n+=e.bundle?"&bundle="+e.bundle:"",i!==st.Unspecified&&(n+="&im="+i),n+=e.silentModeIgnored?"&smi=1":"",n+="&cb="+String(dt.generateCacheBuster()),n+=e.getContextFlags()},pt.prototype.buildCsmUrl=function(t,e,i){var o=pt.CRITEO_BIDDER_URL+pt.CRITEO_CSM_HANDLER;return o+="?ptv=95",this.appendCommonParameters(o,t,e,i)},pt.prototype.buildErrorUrl=function(){return pt.CRITEO_BIDDER_URL+pt.CRITEO_ERROR_HANDLER},pt.prototype.buildCsmEventsUrl=function(){return pt.CRITEO_BIDDER_URL+pt.CRITEO_CSM_EVENTS_HANDLER},pt.prototype.buildCsmCountersUrl=function(){return pt.CRITEO_BIDDER_URL+pt.CRITEO_CSM_COUNTERS_HANDLER},pt.prototype.appendCommonParameters=function(t,e,i,o){return t+="&profileId="+String(e),void 0!==i&&(t+="&av="+String(i)),void 0!==o&&(t+="&wv="+encodeURIComponent(o)),t},pt.prototype.getHandlerPath=function(){return this.auditMode?pt.CRITEO_BIDDER_AUDIT_HANDLER:pt.CRITEO_BIDDER_HANDLER},pt.CRITEO_BIDDER_URL="https://bidder.criteo.com/",pt.CRITEO_BIDDER_HANDLER="cdb",pt.CRITEO_CSM_HANDLER="csm",pt.CRITEO_CSM_EVENTS_HANDLER="csm/events",pt.CRITEO_CSM_COUNTERS_HANDLER="csm/counters",pt.CRITEO_ERROR_HANDLER="error",pt.CRITEO_BIDDER_AUDIT_HANDLER="prebid/audit",pt);function pt(t){void 0===t&&(t=!1),this.auditMode=t}var ht=(ft.prototype.getManagerMetrics=function(){var t=this.localStorageHelper.getItem(ft.MANAGER_METRICS_STORAGE_KEY);if(null==t)return{};var e=v(t);return void 0===e?{}:e},ft.prototype.setManagerMetrics=function(t){this.localStorageHelper.setItem(ft.MANAGER_METRICS_STORAGE_KEY,JSON.stringify(t))},ft.prototype.getSilentModeRequestCount=function(t){void 0===t&&(t=!1);var e=this.getManagerMetrics().silentModeRequestCount;return t&&this.resetSilentModeRequestCount(),isNaN(e)?0:e},ft.prototype.incSilentModeRequestCount=function(){var t=this.getManagerMetrics();t.silentModeRequestCount=isNaN(t.silentModeRequestCount)?1:t.silentModeRequestCount+1,this.setManagerMetrics(t)},ft.prototype.resetSilentModeRequestCount=function(){var t=this.getManagerMetrics();t.silentModeRequestCount=0,this.setManagerMetrics(t)},ft.prototype.getLocalStorageKeyCount=function(){return this.localStorageHelper.getAllItemsByPrefix("criteo_").length+this.localStorageHelper.getAllItemsByPrefix("cto_").length},ft.prototype.sendMetric=function(t){this.sendMetrics([t])},ft.prototype.sendMetrics=function(t){if(!(t.length<=0)){var e=new rt(this.urlBuilder,this.profileId,t,this.adapterVersion,this.wrapperVersion),i=e.getUrl(),o=JSON.stringify(e.getRequest());navigator.sendBeacon&&navigator.sendBeacon(i,o)}},ft.MANAGER_METRICS_STORAGE_KEY="criteo_pt_cdb_mngr_metrics",ft.EVENTS_METRICS_STORAGE_KEY="criteo_pt_cdb_events_metrics",ft.COUNTERS_METRICS_STORAGE_KEY="criteo_pt_cdb_counters_metrics",ft);function ft(t,e,i,o){this.urlBuilder=new ut,this.profileId=t,this.adapterVersion=e,this.wrapperVersion=i,this.localStorageHelper=o||new n}var vt=(gt.tryInsertPlaceholder=function(t,e,i){var o=document.getElementById(t);if(null===o)return A.Warning("Unable to insert ad placeholder : impression id "+t+" not found."),!1;if(o.appendChild(this.createPlaceholder()),!e&&this.isVisible(o))return!0;this.removePlaceholder(t,i);var r=o.parentElement;if(null===r)return!1;var n=this.createClone(o);return r.insertBefore(n,o),n.appendChild(this.createPlaceholder()),this.isVisible(n)?(i[t]=n,!0):(A.Warning("Ad placeholder created but not visible : can't render."),r.removeChild(n),!1)},gt.isVisible=function(t){return 0!==t.offsetWidth&&0!==t.offsetHeight&&0!==t.getClientRects().length},gt.createClone=function(t){var e=t.cloneNode(!1);return e.id=this.generateRandomId(),e.className="","none"===e.style.display&&e.style.removeProperty("display"),"SPAN"===e.tagName&&(e.style.display="block"),t.style.display="none",e},gt.generateRandomId=function(){for(var t="1234567890abcdefghijklmnopqrstuvwxyz",e="",i=0;i<20;i++){var o=Math.floor(Math.random()*t.length);e+=t.charAt(o)}return e},gt.createPlaceholder=function(){var t=document.createElement("div");return t.style.width="1px",t.style.height="1px",t.style.display="block",t.className=gt.PLACEHOLDER_NAME,t},gt.removePlaceholder=function(t,e){var i=e[t];void 0!==i&&null!==i.parentNode&&i.parentNode.removeChild(i);var o=document.getElementById(t);if(null!==o)for(var r=0,n=o.getElementsByClassName(gt.PLACEHOLDER_NAME);r\n var win = window;\n for (var i = 0; i < 10; ++i) {\n win = win.parent;\n if (win.criteo_prebid_native_slots) {\n var responseSlot = win.criteo_prebid_native_slots["'+t+'"];\n responseSlot.callback(responseSlot.payload);\n break;\n }\n }\n <\/script>'},Lt.createPrebidNativeAd=function(t){return{title:t.products[0].title,body:t.products[0].description,sponsoredBy:t.advertiser.description,icon:t.advertiser.logo,image:t.products[0].image,clickUrl:t.products[0].click_url,privacyLink:t.privacy.optout_click_url,privacyIcon:t.privacy.optout_image_url,cta:t.products[0].call_to_action,price:t.products[0].price,impressionTrackers:t.impression_pixels.map(function(t){return t.url})}},Lt.prototype.getBidRequestForSlot=function(t){for(var e=0,i=this.bidRequests;e